import request from '@/utils/request'

// 查询泳池列表
export function listPool(query) {
  return request({
    url: '/system/pool/list',
    method: 'get',
    params: query
  })
}

// 查询泳池详细
export function getPool(id) {
  return request({
    url: '/system/pool/' + id,
    method: 'get'
  })
}

// 新增泳池
export function addPool(data) {
  return request({
    url: '/system/pool',
    method: 'post',
    data: data
  })
}

// 修改泳池
export function updatePool(data) {
  return request({
    url: '/system/pool',
    method: 'put',
    data: data
  })
}

// 删除泳池
export function delPool(id) {
  return request({
    url: '/system/pool/' + id,
    method: 'delete'
  })
}

// 导出泳池
export function exportPool(query) {
  return request({
    url: '/system/pool/export',
    method: 'get',
    params: query
  })
}